<?php
use common\service\StaticService;
use backend\assets\AdminAsset;
use common\service\GlobalUrlService;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/pswd/pswd.js'),AdminAsset::class);
?>
<div class="layui-header header">
    <div class="layui-main mag0">
        <a href="#" class="logo">小鸿人</a>
        <!-- 显示/隐藏菜单 -->
        <a href="javascript:;" class="seraph hideMenu icon-caidan"></a>
        <!-- 顶级菜单 -->
        <ul class="layui-nav top_menu">
            <li class="layui-nav-item" pc>
                <a href="javascript:;" class=""><i class="layui-icon" data-icon="&#xe667;">&#xe667;</i><cite>消息提醒</cite><?php if($this->params['shop_count']>0):?><span class="layui-badge-dot"></span><?php endif;?></a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" data-url="<?= GlobalUrlService::buildAdminUrl('shop/index',['status'=>1])?>"><i class="layui-icon" data-icon="">&#xe645;</i><cite>待审核商家</cite> <?php if($this->params['shop_count']>0):?><span class="num"><?=$this->params['shop_count']?></span><?php endif;?></a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" pc>
                <a href="javascript:;" class="clearCache"><i class="layui-icon" data-icon="&#xe640;">&#xe640;</i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>
            </li>
<!--            <li class="layui-nav-item lockcms" pc>-->
<!--                <a href="javascript:;"><i class="seraph icon-lock"></i><cite>锁屏</cite></a>-->
<!--            </li>-->
            <li class="layui-nav-item" id="userInfo">
                <a href="javascript:;"><img src="<?= GlobalUrlService::buildStaticUrl('img/header.png')?>" class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName"><?= $this->params['current_user']['username']?></cite></a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" data-url="<?= GlobalUrlService::buildAdminUrl('admin/get-info')?>"><i class="seraph icon-ziliao" data-icon="icon-ziliao"></i><cite>个人资料</cite></a></dd>
                    <dd><a class="modify-pwd"><i class="seraph icon-xiugai" data-icon="icon-xiugai"></i><cite>修改密码</cite></a></dd>
<!--                    <dd class="sysNotice">-->
<!--                        <a href="javascript:;" class=""><i class="layui-icon">&#xe645;</i><cite>系统公告</cite></a>-->
<!--                        <dl class="levelthree">-->
<!--                            <dd><a href="javascript:;">123123</a></dd>-->
<!--                            <dd><a href="javascript:;">123</a></dd>-->
<!--                            <dd><a href="javascript:;">23</a></dd>-->
<!--                        </dl>-->
<!--                    </dd>-->
<!--                    <dd pc><a href="javascript:;" class="functionSetting"><i class="layui-icon">&#xe620;</i><cite>功能设定</cite><span class="layui-badge-dot"></span></a></dd>-->
<!--                    <dd pc><a href="javascript:;" class="changeSkin"><i class="layui-icon">&#xe61b;</i><cite>更换皮肤</cite></a></dd>-->
                    <dd><a href="<?= GlobalUrlService::buildAdminUrl('admin/logout')?>" class="signOut"><i class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
<style>
    .levelthree{display:none;position:absolute;right:123px;background:#fff;color:#000;top:0;}
    .sysNotice:hover .levelthree{display:block;}
    .levelthree dd{height:36px;line-height:36px;}
    .levelthree dd:hover{background:#5FB878;color:#fff;}
    .num{color:#FF5722;}
</style>
